/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ASAExpr;

import generation.GestionVariables;

/**
 *
 * @author FM & KB
 */
public class ASAExprDeclaration extends ASAExpr {

    private String nomFonction;
    private String nomVariable;
    
    public ASAExprDeclaration(String nomFonction,String nomVariable){
        this.nomFonction = nomFonction;
        this.nomVariable = nomVariable;
    }
    
    @Override
    public int evalue() {
        GestionVariables.declarerVariable(nomFonction, nomVariable);
        return 1;
    }

    @Override
    public String getLabelExplorateur() {
        return "DECLARATION";
    }
    
}
